
function loadingPromise(isLoading: boolean): Promise<void> {
  return new Promise((resolve, reject) => {
    
    if (isLoading) {
      reject(new Error('Loading...'));
    } else {
      resolve()
    }
    
  })
}

export {
  loadingPromise
}

export default {
  loadingPromise
}